﻿<Window x:Class="TaskLauncher.View.LauncherWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:converters="clr-namespace:TaskLauncher.View.Converters"
        Title="Task Launcher" Height="194.26" Width="271.03">
    <Window.Resources>
        <converters:ParameterConverter x:Key="parameterConverter"/>
    </Window.Resources>
    <Grid>
        <ComboBox HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" ItemsSource="{Binding AvailableTasks}" SelectedItem="{Binding SelectedTask, Mode=TwoWay}"/>
        <Label Content="Parameters:" HorizontalAlignment="Left" Margin="10,32,0,0" VerticalAlignment="Top"/>
        <TextBox Margin="10,58,10,46" TextWrapping="Wrap" Text="{Binding TaskParameters, Converter={StaticResource parameterConverter}, Mode=TwoWay}" VerticalScrollBarVisibility="Auto"/>
        <Button Content="Launch" Margin="10,0,0,10" VerticalAlignment="Bottom" Height="31" HorizontalAlignment="Left" Width="89" Command="{Binding LaunchTaskCommand}"/>
    </Grid>
</Window>
